<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ taglib prefix="s" uri="/struts-tags" %>
 ${msg}
 ${errorMsg}
<%@include file="/backend/template/html/search/Search.jsp" %> 
	<table>
        <tr>
		 	<td valign="top">
	            <img src='<s:url value="/backend/resources/images/menu1.jpg"/>'>
			</td>
			<td border="1">
				<s:a href="cmsview">Create New CMS</s:a>
			</td>
		 </tr>
	</table> 
	<!-- =====================================================================================================  -->
	
	<table>
		<tr><td>Id &nbsp&nbsp&nbsp&nbsp&nbsp</td><td>Name&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp</td><td>&nbsp&nbsp&nbsp&nbsp Edit &nbsp&nbsp</td><td> Delete</td></tr>
		<s:form>
		<s:if test="blocks.size() > 0">
		<s:iterator value="blocks" var="block">
			<tr>
				<td>
				${block.uuid} &nbsp&nbsp&nbsp
				</td>
				<td>${block.identifier} &nbsp&nbsp&nbsp</td>
				<td>
					<a href="EditSelectedCms?identifier=${block.identifier}&p=${p}">Edit</a> &nbsp&nbsp&nbsp
				</td>
				<td>
				<a href="DeleteSelectedCms?identifier=${block.identifier}&p=${p}" onClick="return confirmDelete()">Delete</a>
				</td>
		   </tr>
		   
		</s:iterator>
		</s:if>
		</s:form>
		
	</table>
	<table>
  <tr>
		   	<td>
		   		
				<s:iterator value="pageHtml" var="link">
					<a href="cmsedit?p=${link}">${link}</a>
				</s:iterator>
		   	</td>
		   </tr>
</table>


	
	<script type="text/javascript">
function confirmDelete()
{
var r=confirm("Are you sure you want to delete this file?");
if (r==true)
  {
  alert("You have deleted the content");
  return true;
  }
else
  {
  return false;
  }
}
</script>